package com.dz.Incubator.service.impl;

import cn.hutool.crypto.SecureUtil;
import com.dz.Incubator.dao.SysManagerDao;
import com.dz.Incubator.entity.SysManagerEntity;
import com.dz.Incubator.service.SysManagerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SysManagerServiceImpl implements SysManagerService {

    @Autowired
    private SysManagerDao sysManagerDao;

    @Override
    public SysManagerEntity login(String username, String password) {
        return sysManagerDao.login(username, SecureUtil.md5(password));
    }
}
